# encoding=utf8
# aid 转 bid 代码取自：https://zhuanlan.zhihu.com/p/117358823
import json
import os
import re
import sys
import time
from contextlib import closing
from math import ceil

import shutil
import requests
# 解决QPython的bug
# requests.packages.urllib3.util.ssl_.DEFAULT_CIPHERS = "TLS13-CHACHA20-POLY1305-SHA256:TLS13-AES-128-GCM-SHA256:TLS13-AES-256-GCM-SHA384:ECDHE:!COMPLEMENTOFDEFAULT"
from tqdm import tqdm
from Bilibili下载器_api版本_队列 import Bilibili, Downloader


debug = False


def main():
    # url = input('url:')
    url = sys.argv[1]
    a = Bilibili(url)
    a.main()


if __name__ == '__main__':
    main()
